package com.example.polarity;

import java.util.Random;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.View;
import android.widget.ImageView;

public class AstroidObject extends ImageView
{

	public int x = 0;
	public int y = 0;
	
	public int pivotX = 0;
	public int pivotY = 0;
	
	public int duration;
	public int Pos; 
	public int rotation = 1;
	
	public int DrawPosition = 0;
	
	Bitmap AstroidImage; 
	
	
	public AstroidObject(Context context)
	{
		super(context);
		AstroidImage  = BitmapFactory.decodeResource(getResources(), R.drawable.astroid2);
		Random rand = new Random();
		int randX = rand.nextInt(25 - 5) + 5;
		int randY = rand.nextInt(25 - 5) + 5;
		
		AstroidImage = Bitmap.createScaledBitmap(AstroidImage, randX, randY, true);
	}
}
